﻿using NodeCanvas.Framework;
using ParadoxNotion.Design;
using UnityEngine;
using Yoozoo.Gameplay.Liberty.AI.Utils;

namespace Yoozoo.Gameplay.Liberty.AI.Node
{
    [Category("Ggame/Liberty")]
    public class SwitchCarAISpeedStrategy : CarBaseNode
    {
        public BBParameter<VehicleAI.VehicleSpeedStrategy> speedStrategy = VehicleAI.VehicleSpeedStrategy.None;
        protected override void OnExecute()
        {
            _vehicleAI.SwitchSpeedStrategy(speedStrategy.value);
            EndAction();
        }
    }
}